package io.finer.erp.jeecg.finance.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 商城订单信息表
 * @Author: jeecg-boot
 * @Date:   2020-08-28
 * @Version: V1.0
 */
@ApiModel(value="zrk_shoporder对象", description="商城订单信息表")
@Data
public class ZrkShoporderDto implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**订单编号*/
	@Excel(name = "订单编号", width = 15)
	@ApiModelProperty(value = "订单编号")
	private String orderNo;
	/**客户名称*/
	@Excel(name = "客户名称", width = 15, dictTable = "bas_customer", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "客户名称")
    private String customerName;
	/**客户编号*/
	@Excel(name = "客户ID", width = 15)
	@ApiModelProperty(value = "客户Id")
	private String customerId;
	/**订单金额*/
	@Excel(name = "订单金额", width = 15)
    @ApiModelProperty(value = "订单金额")
    private java.math.BigDecimal orderMoney;
	/**订单创建时间*/
	@Excel(name = "订单时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "订单时间")
    private Date orderTime;
	/**销售单核销状态*/
	@Excel(name = "核销状态", width = 15)
	@ApiModelProperty(value = "核销状态")
	@Dict(dicCode = "hxStatus")
	private java.lang.String hxStatus;
	/**核销金额*/
	@Excel(name = "已核销金额", width = 15)
	@ApiModelProperty(value = "已核销金额")
	private BigDecimal hxPrice;
	/**累计金额*/
	@Excel(name = "累计金额", width = 15)
	@ApiModelProperty(value = "累计金额")
	private BigDecimal accumulatedPrice;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
}